using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Doctors_WebForum.Admin
{
    public partial class DetailsObject : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string view = Request.QueryString["view"];

            if (view == "acc")
            {
                lblHeaderInfo.Text = "Member Details Information";
                Control c = Page.LoadControl("UIControls/AccountsDetails.ascx");
                loadControl.Controls.Add(c);
            }
            else if (view == "feed")
            {
                lblHeaderInfo.Text = "Feedbacks Details Information";
                Control c = Page.LoadControl("UIControls/FeedbacksDetails.ascx");
                loadControl.Controls.Add(c);
            }
            else if (view == "cate")
            {
                lblHeaderInfo.Text = "Categories Details Information";
            }
            else if (view == "log")
            {
                lblHeaderInfo.Text = "Logs Details Information";
                Control c = Page.LoadControl("UIControls/LogsDetails.ascx");
                loadControl.Controls.Add(c);
            }
            else
            {
                Response.Write("<script>alert('No result for this object !')</script>");
                Response.Write("<script>window.close()</script>");
            }
        }


    }
}
